package com.whc.gulimall.product.feign;

import com.whc.common.to.SkuReductionTo;
import com.whc.common.to.SpuBoundTo;
import com.whc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author angaoen
 */
@FeignClient(name = "gulimall-coupon", path = "/coupon")
public interface CouponFeignService {

    /**
     * 保存spuBounds
     *
     * @param spuBoundTo 传输对象
     * @return 统一返回结果
     */
    @PostMapping("/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

    /**
     * 保存skuReductionTo
     *
     * @param skuReductionTo 传输对象
     * @return 统一返回结果
     */
    @PostMapping("/skufullreduction/saveInfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);

}
